
If ProcessExists("Rogue Tools.exe") Then
	$f = 0
Else
	MsgBox(4096, "Rogue Tools?", "You need to be running Rogue Tools in order to use this control")
	Exit
EndIf

$filesu = FileOpen(@ProgramFilesDir & "\burnersware\Rogue Tools\include\vars\summonvars.txt", 0)
$speedsu = FileReadLine($filesu, 1)
$avanumbersu = FileReadLine($filesu, 2)
FileClose($filesu)

Global $resa = @DesktopWidth
Global $resb = @DesktopHeight
Global $winadded = $resa + $resb

If $winadded <> 1400 And $winadded <> 1792 And $winadded <> 2304 And $winadded <> 2800 Then
	nowinres()
EndIf

GUICreate("Rogue Summoning", 550, 380, -1, -1, -1, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST)
GUICtrlCreatePic(@ProgramFilesDir & "\burnersware\Rogue Tools\Include\img\burnerssidebarsummon.jpg", 0, 22, 155, 360)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Bot Program Speed", 365, 80, 170, 75)
$speednumbers = GUICtrlCreateSlider(377, 95, 150, 30)
GUICtrlSetLimit(-1, 3, 1)
If $speedsu = 1 Then
	GUICtrlSetData($speednumbers, 1)
EndIf
If $speedsu = 2 Then
	GUICtrlSetData($speednumbers, 2)
EndIf
If $speedsu = 3 Then
	GUICtrlSetData($speednumbers, 3)
EndIf
GUICtrlCreateLabel("Slow", 377, 130, 50, 20)
GUICtrlSetFont(-1, 9, 450)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlCreateLabel("Standard", 427, 130, 55, 20)
GUICtrlSetFont(-1, 9, 450)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlCreateLabel("Ultra", 500, 130, 30, 20)
GUICtrlSetFont(-1, 9, 450)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("Current Avatars", 170, 80, 170, 120)
$spirit1 = GUICtrlCreateCheckbox("Air", 175, 95, 50, 20)
$spirit2 = GUICtrlCreateCheckbox("Fire", 175, 115, 50, 20)
$spirit3 = GUICtrlCreateCheckbox("Water", 175, 135, 56, 20)
$spirit4 = GUICtrlCreateCheckbox("Thunder", 175, 155, 56, 20)
$spirit5 = GUICtrlCreateCheckbox("Ice", 175, 175, 50, 20)
$spirit6 = GUICtrlCreateCheckbox("Earth", 292, 95, 46, 20)
$spirit7 = GUICtrlCreateCheckbox("Light", 292, 115, 46, 20)
$spirit8 = GUICtrlCreateCheckbox("Dark", 292, 135, 46, 20)
$ava6 = GUICtrlCreateCheckbox("Titan", 292, 155, 46, 20)
$ava1 = GUICtrlCreateCheckbox("Garuda", 232, 95, 56, 20)
$ava2 = GUICtrlCreateCheckbox("Ifrit", 232, 115, 40, 20)
$ava3 = GUICtrlCreateCheckbox("Leviathan", 232, 175, 65, 20)
$ava4 = GUICtrlCreateCheckbox("Ramuh", 232, 155, 56, 20)
$ava5 = GUICtrlCreateCheckbox("Shiva", 232, 135, 56, 20)
If $avanumbersu = 1 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
ElseIf $avanumbersu = 2 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
ElseIf $avanumbersu = 3 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
ElseIf $avanumbersu = 4 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
ElseIf $avanumbersu = 5 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
ElseIf $avanumbersu = 6 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
ElseIf $avanumbersu = 7 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
ElseIf $avanumbersu = 8 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
ElseIf $avanumbersu = 9 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
	GUICtrlSetState($ava1, $GUI_CHECKED)
ElseIf $avanumbersu = 10 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
	GUICtrlSetState($ava1, $GUI_CHECKED)
	GUICtrlSetState($ava2, $GUI_CHECKED)
ElseIf $avanumbersu = 11 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
	GUICtrlSetState($ava1, $GUI_CHECKED)
	GUICtrlSetState($ava2, $GUI_CHECKED)
	GUICtrlSetState($ava3, $GUI_CHECKED)
ElseIf $avanumbersu = 12 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
	GUICtrlSetState($ava1, $GUI_CHECKED)
	GUICtrlSetState($ava2, $GUI_CHECKED)
	GUICtrlSetState($ava3, $GUI_CHECKED)
	GUICtrlSetState($ava4, $GUI_CHECKED)
ElseIf $avanumbersu = 13 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
	GUICtrlSetState($ava1, $GUI_CHECKED)
	GUICtrlSetState($ava2, $GUI_CHECKED)
	GUICtrlSetState($ava3, $GUI_CHECKED)
	GUICtrlSetState($ava4, $GUI_CHECKED)
	GUICtrlSetState($ava5, $GUI_CHECKED)
ElseIf $avanumbersu = 14 Then
	GUICtrlSetState($spirit1, $GUI_CHECKED)
	GUICtrlSetState($spirit2, $GUI_CHECKED)
	GUICtrlSetState($spirit3, $GUI_CHECKED)
	GUICtrlSetState($spirit4, $GUI_CHECKED)
	GUICtrlSetState($spirit5, $GUI_CHECKED)
	GUICtrlSetState($spirit6, $GUI_CHECKED)
	GUICtrlSetState($spirit7, $GUI_CHECKED)
	GUICtrlSetState($spirit8, $GUI_CHECKED)
	GUICtrlSetState($ava1, $GUI_CHECKED)
	GUICtrlSetState($ava2, $GUI_CHECKED)
	GUICtrlSetState($ava3, $GUI_CHECKED)
	GUICtrlSetState($ava4, $GUI_CHECKED)
	GUICtrlSetState($ava5, $GUI_CHECKED)
	GUICtrlSetState($ava6, $GUI_CHECKED)
EndIf
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", 465, 308, 80, 47)
$OKsummon = GUICtrlCreateButton("RUN", 475, 325, 60, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState(-1, $GUI_CHECKED)






GUISetState()
While 1
	$msg = GUIGetMsg()
	If $msg = $OKsummon Then
		summonc()
		summonr()
	EndIf
	If $msg = $GUI_EVENT_CLOSE Then Exit
	If GUICtrlRead($ava1) > 3 Then
		$statusava1 = GUICtrlRead($ava1) - 4
	ElseIf GUICtrlRead($ava1) < 3 Then
		$statusava1 = GUICtrlRead($ava1)
	EndIf
	If GUICtrlRead($ava2) > 3 Then
		$statusava2 = GUICtrlRead($ava2) - 4
	ElseIf GUICtrlRead($ava2) < 3 Then
		$statusava2 = GUICtrlRead($ava2)
	EndIf
	If GUICtrlRead($ava3) > 3 Then
		$statusava3 = GUICtrlRead($ava3) - 4
	ElseIf GUICtrlRead($ava3) < 3 Then
		$statusava3 = GUICtrlRead($ava3)
	EndIf
	If GUICtrlRead($ava4) > 3 Then
		$statusava4 = GUICtrlRead($ava4) - 4
	ElseIf GUICtrlRead($ava4) < 3 Then
		$statusava4 = GUICtrlRead($ava4)
	EndIf
	If GUICtrlRead($ava5) > 3 Then
		$statusava5 = GUICtrlRead($ava5) - 4
	ElseIf GUICtrlRead($ava5) < 3 Then
		$statusava5 = GUICtrlRead($ava5)
	EndIf
	If GUICtrlRead($ava6) > 3 Then
		$statusava6 = GUICtrlRead($ava6) - 4
	ElseIf GUICtrlRead($ava6) < 3 Then
		$statusava6 = GUICtrlRead($ava6)
	EndIf

	If GUICtrlRead($spirit1) > 3 Then
		$statusspirit1 = GUICtrlRead($spirit1) - 4
	ElseIf GUICtrlRead($spirit1) < 3 Then
		$statusspirit1 = GUICtrlRead($spirit1)
	EndIf
	If GUICtrlRead($spirit2) > 3 Then
		$statusspirit2 = GUICtrlRead($spirit2) - 4
	ElseIf GUICtrlRead($spirit2) < 3 Then
		$statusspirit2 = GUICtrlRead($spirit2)
	EndIf
	If GUICtrlRead($spirit3) > 3 Then
		$statusspirit3 = GUICtrlRead($spirit3) - 4
	ElseIf GUICtrlRead($spirit3) < 3 Then
		$statusspirit3 = GUICtrlRead($spirit3)
	EndIf
	If GUICtrlRead($spirit4) > 3 Then
		$statusspirit4 = GUICtrlRead($spirit4) - 4
	ElseIf GUICtrlRead($spirit4) < 3 Then
		$statusspirit4 = GUICtrlRead($spirit4)
	EndIf
	If GUICtrlRead($spirit5) > 3 Then
		$statusspirit5 = GUICtrlRead($spirit5) - 4
	ElseIf GUICtrlRead($spirit5) < 3 Then
		$statusspirit5 = GUICtrlRead($spirit5)
	EndIf
	If GUICtrlRead($spirit6) > 3 Then
		$statusspirit6 = GUICtrlRead($spirit6) - 4
	ElseIf GUICtrlRead($spirit6) < 3 Then
		$statusspirit6 = GUICtrlRead($spirit6)
	EndIf
	If GUICtrlRead($spirit7) > 3 Then
		$statusspirit7 = GUICtrlRead($spirit7) - 4
	ElseIf GUICtrlRead($spirit7) < 3 Then
		$statusspirit7 = GUICtrlRead($spirit7)
	EndIf
	If GUICtrlRead($spirit8) > 3 Then
		$statusspirit8 = GUICtrlRead($spirit8) - 4
	ElseIf GUICtrlRead($spirit8) < 3 Then
		$statusspirit8 = GUICtrlRead($spirit8)
	EndIf

	Local $avatarnumber = $statusava1 + $statusava2 + $statusava3 + $statusava4 + $statusava5 + $statusava6 + $statusspirit1 + $statusspirit2 + $statusspirit3 + $statusspirit4 + $statusspirit5 + $statusspirit6 + $statusspirit7 + $statusspirit8
WEnd

Func summonc()
	$filesummon = FileOpen(@ProgramFilesDir & "\burnersware\Rogue Tools\include\vars\summonvars.txt", 2)
	FileWrite($filesummon, GUICtrlRead($speednumbers) & @CRLF)
	FileWrite($filesummon, $avatarnumber & @CRLF)
	FileClose($filesummon)
EndFunc ;==>summonc

Func summonr()
	Run("Rogue Summoning Bot.exe")
	Exit
EndFunc ;==>summonr

Func nowinres()
	MsgBox(4096, "Resolution Error", "Your current windows resolution is not supported _
			"  & @CRLF & " Please Switch To one of the four supported resolutions And restart Burners 7in1 Software"  & @CRLF & " These Include 800x600 & 1024x768 & 1280x1024 & 1600x1200 _
			" & @CRLF & " Thank You")
	Exit
EndFunc ;==>nowinres

